home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / MacTech® Magazine / Volume 13 - 1997 (partial) / 13.04 Apr 97 / Challenge / SortWindow.h < prev   
Encoding:
C/C++ Source or Header  |  1997-02-21  |  367 b   |  23 lines  |  [TEXT/MMCC]

  1. /* SortWindow.h  
  2.    Charles Higgins 
  3.  */
  4.  
  5. typedef enum SortType {
  6.  kBubbleSort = 1,
  7.  kExchange = 2,
  8.  kMySort = 3
  9.  } SortType;
  10.  
  11. class SortWindow : public BWindow {
  12.  
  13. public:
  14.                 SortWindow(BRect frame);
  15.  
  16. virtual void DoSort( char *thingsToSort[],
  17.      int numberOfThings,
  18.      SortType sortMethod);
  19.      
  20. virtual void QuickSort( char **list, int first, int last);
  21.  
  22. };
  23.